sysinfo-0.9.6 is not a library.
sysinfo
A system handler to interact with processes.
Support the following platforms:
- Linux
- Raspberry
- Mac OSX
- Windows
It also compiles for Android but never been tested on it.
Running on Raspberry
It'll be difficult to build on Raspberry. A good way-around is to be build on Linux before sending it to your Raspberry:
Code example
You have an example into the examples
folder. Just run cargo run
inside the examples
folder to start it. Otherwise, here is a little code sample:
extern crate sysinfo;
use ;
let mut sys = new;
// We display the disks:
println!;
for disk in sys.get_disks
// Network data:
println!;
println!;
// Components temperature:
for component in sys.get_components_list
// Memory information:
println!;
println!;
println!;
println!;
// Number of processors
println!;
// To refresh all system information:
sys.refresh_all;
C interface
It's possible to use this crate directly from C. Take a look at the Makefile
and at the examples/src/simple.c
file.
To build the C example, just run:
> make
> ./simple
# If needed:
> LD_LIBRARY_PATH=target/release/
Donations
If you appreciate my work and want to support me, you can do it here: